import request from "../request.js"


// 获取品牌列表
function requestBrandList(info,data){
	return request({
		url:`/lejuClient/brand/findBrandsByPage/${info.start}/${info.limit}`,
		data
	})
}

// 获取文章列表
function requestArticleList(info,data){
	return request({
		url:`/lejuClient/productArticle/findArticleByPage/${info.start}/${info.limit}`,
		data
	})
}

// 更新文章状态
function requestUpdataArticle(data){
	return request({
		method:'post',
		url:`/lejuAdmin/productArticle/updateArticle`,
		data
	})
}


// 获取文章详情
function requestGetArticle(id,data){
	return request({
		url:`/lejuClient/productArticle/productArticle/${id}`,
		data
	})
}



// // 添加文章收藏
// function requestArticleList(info,data){
// 	return requestOnline({
// 		url:`/lejuClient/productArticle/findArticleByPage/${info.start}/${info.limit}`,
// 		data
// 	})
// }

export {
	requestBrandList,
	requestArticleList,
	requestGetArticle
}